package org.ycb.ycbisgod.ycbwoxihuanni.util;

import lombok.Data;

@Data
public class Result {
    //结果返回类
    private final boolean flag;
    private final String message;
    private Object data;
    public Result(boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }
    public Result(boolean flag, String message, Object data) {
        this.flag = flag;
        this.message = message;
        this.data = data;
    }
}
